package com.kaishengit.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.CityDao;

import com.kaishengit.pojo.City;

@Service
@Transactional
public class CityService {

	private CityDao cityDao;

	@Autowired
	public void setCityDao(CityDao cityDao) {
		this.cityDao = cityDao;
	}
	public List<City> fingAll(){
		
		return cityDao.findAll();
	}
	
	public List<City> findByProvinceId(String provinceId) {
		return (List<City>) cityDao.findByProvinceId(provinceId);
		
	}
	
}
